package com.leather.admin.feignclient.impl;

import com.leather.admin.feignclient.GoodsTypeClient;
import com.leather.common.entity.GoodsType;
import com.leather.common.result.CodeMsg;
import com.leather.common.result.Result;
import com.leather.common.toolkits.CollectionKit;
import org.springframework.stereotype.Component;

@Component
public class GoodsTypeClientHystrix  implements GoodsTypeClient {
    @Override
    public Object goodsTypeIndex() {
        return CollectionKit.emptyTableMap();
    }

    @Override
    public Result addGoodsType(GoodsType goodsType) {
        return Result.error(CodeMsg.SERVER_OFFLINE);
    }

}
